package info.empathymobile.forecastmethods;

public class ForecastMethodFactory {

	public ForecastMethod getForecastMethod(String method){
		if(method.equals(SeasonalNaive.NAME)){
			return new SeasonalNaive();
		}
		else if(method.equals(WeightedMovingAverage.NAME)){
			return new WeightedMovingAverage();
		}
		else if(method.equals(ClassicDecompPlusHoltAndNaive.NAME)){
			return new ClassicDecompPlusHoltAndNaive();
		}
		else if(method.equals(HoltWintersExpSmooth.NAME)){
			return new HoltWintersExpSmooth();
		}
		return null;
	}
}
